home *** CD-ROM | disk | FTP | other *** search
- property hardware, oldSoundVolume, currSndVolume, oldColorLevel, timeDate, pathSep
-
- on new me
- return me
- end
-
- on getMachineDAta me
- if the platform starts "Mac" then
- set the hardware of me to #Mac
- set the pathSep of me to ":"
- else
- set the hardware of me to #IBM
- set the pathSep of me to "\"
- end if
- set the oldSoundVolume of me to the soundLevel
- set the oldColorLevel of me to the colorDepth
- set vTime to the short time
- set vDate to the short date
- set the timeDate of me to [#time: vTime, #date: vDate]
- end
-
- on setMachine me
- if the oldColorLevel of me <> 8 then
- case the hardware of me of
- #IBM:
- alert("You might get better performance if you reset your monitor to 256 colors.")
- #Mac:
- set the colorDepth to 8
- end case
- end if
- set the currSndVolume of me to 4
- set the soundLevel to the currSndVolume of me
- end
-
- on restoreMachine me
- if the oldColorLevel of me <> 8 then
- if the hardware of me = #Mac then
- set the colorDepth to the oldColorLevel of me
- end if
- end if
- set the soundLevel to the oldSoundVolume of me
- end
-
- on setVolume me, vLevel
- set the currSndVolume of me to vLevel
- set the soundLevel to the currSndVolume of me
- end
-
- on computerType me
- return string(the hardware of me)
- end
-
- on getTimeDate me
- set vDataString to getProp(the timeDate of me, #time) & " " & getProp(the timeDate of me, #date)
- return vDataString
- end
-
- on showProperties me
- put "hardware:" && the hardware of me
- put "oldSoundVolume:" && the oldSoundVolume of me
- put "currSndVolume:" && the currSndVolume of me
- put "oldColorLevel:" && the oldColorLevel of me
- put "timeDate:" && the timeDate of me
- end
-